.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
.TH ESMERGE "1" "November 2008" "esmerge 1.11" "User Commands"
.SH NAME
esmerge \- merge audio and video ES into a TS 
.SH DESCRIPTION
.SS "Usage:"
.IP
esmerge [\fIswitches\fR] \fI<video\-file>\fR \fI<audio\-file>\fR \fI<output\-file>\fR
.IP
TS tools version 1.11, esmerge built Nov 11 2008 17:15:46
.IP
Merge the contents of two Elementary Stream (ES) files, one containing
video data, and the other audio, to produce an output file containing
Transport Stream (TS).
.SS "Files:"
.TP
<video\-file>
is the ES file containing video.
.TP
<audio\-file>
is the ES file containing audio.
.IP
<output\-file> is the resultant TS file.
.SS "Switches:"
.TP
\fB\-quiet\fR, \fB\-q\fR
Only output error messages.
.TP
\fB\-verbose\fR, \fB\-v\fR
Output information about each audio/video frame.
.TP
\fB\-x\fR
Output diagnostic information.
.TP
\fB\-h264\fR
The video stream is H.264 (the default)
.TP
\fB\-avs\fR
The video stream is AVS
.TP
\fB\-vidrate\fR <hz>
Video frame rate in Hz \- defaults to 25Hz.
.TP
\fB\-rate\fR <hz>
Audio sample rate in Hertz \- defaults to 44100, i.e., 44.1KHz.
.TP
\fB\-cd\fR
Equivalent to \fB\-rate\fR 44100 (CD rate), the default.
.TP
\fB\-dat\fR
Equivalent to \fB\-rate\fR 48000 (DAT rate).
.TP
\fB\-adts\fR
The audio stream is ADTS (the default)
.TP
\fB\-l2\fR
The audio stream is MPEG layer 2 audio
.TP
\fB\-mp2adts\fR
The audio stream is MPEG\-2 style ADTS regardless of ID bit
.TP
\fB\-mp4adts\fR
The audio stream is MPEG\-4 style ADTS regardless of ID bit
.TP
\fB\-ac3\fR
The audio stream is Dolby AC\-3 in ATSC
.TP
\fB\-patpmtfreq\fR <f>
PAT and PMT will be inserted every <f> video frames.
by default, f = 0 and PAT/PMT are inserted only at
the start of the output stream.
.PP
Limitations
===========
For the moment, the video input must be H.264 or AVS, and the audio input
ADTS, AC\-3 ATSC or MPEG layer 2. Also, the audio is assumed to have a
constant number of samples per frame.
.IP
esmerge <video\-file> <audio\-file> <output\-file>
.IP
TS tools version 1.11, esmerge built Nov 11 2008 17:15:46
.IP
Merge the contents of two Elementary Stream (ES) files, one containing
video data, and the other audio, to produce an output file containing
Transport Stream (TS).
.SS "Files:"
.TP
<video\-file>
is the ES file containing video.
.TP
<audio\-file>
is the ES file containing audio.
.IP
<output\-file> is the resultant TS file.
.SS "Switches:"
.TP
\fB\-quiet\fR, \fB\-q\fR
Only output error messages.
.TP
\fB\-verbose\fR, \fB\-v\fR
Output information about each audio/video frame.
.TP
\fB\-x\fR
Output diagnostic information.
.TP
\fB\-h264\fR
The video stream is H.264 (the default)
.TP
\fB\-avs\fR
The video stream is AVS
.TP
\fB\-vidrate\fR <hz>
Video frame rate in Hz \- defaults to 25Hz.
.TP
\fB\-rate\fR <hz>
Audio sample rate in Hertz \- defaults to 44100, i.e., 44.1KHz.
.TP
\fB\-cd\fR
Equivalent to \fB\-rate\fR 44100 (CD rate), the default.
.TP
\fB\-dat\fR
Equivalent to \fB\-rate\fR 48000 (DAT rate).
.TP
\fB\-adts\fR
The audio stream is ADTS (the default)
.TP
\fB\-l2\fR
The audio stream is MPEG layer 2 audio
.TP
\fB\-mp2adts\fR
The audio stream is MPEG\-2 style ADTS regardless of ID bit
.TP
\fB\-mp4adts\fR
The audio stream is MPEG\-4 style ADTS regardless of ID bit
.TP
\fB\-ac3\fR
The audio stream is Dolby AC\-3 in ATSC
.TP
\fB\-patpmtfreq\fR <f>
PAT and PMT will be inserted every <f> video frames.
by default, f = 0 and PAT/PMT are inserted only at
the start of the output stream.
.PP
Limitations
===========
For the moment, the video input must be H.264 or AVS, and the audio input
ADTS, AC\-3 ATSC or MPEG layer 2. Also, the audio is assumed to have a
constant number of samples per frame.
.SH "SEE ALSO"
The full documentation for
.B esmerge
is maintained as a Texinfo manual.  If the
.B info
and
.B esmerge
programs are properly installed at your site, the command
.IP
.B info esmerge
.PP
should give you access to the complete manual.
